package Student;

import java.util.ArrayList;

public class Main {
    public static void main(String[] args) {
        student s1 = new student("1",10,"m");
        student s2 = new student("2",11,"m");
        student s3 = new student("3",12,"f");
        ArrayList<student> students = new ArrayList<>();
        students.add(s1);
        students.add(s2);
        students.add(s3);
//        System.out.println(students);
        for (int i = 0; i < students.size(); i++) {
            student s = students.get(i);
            System.out.println(s.name);
            System.out.println(s.age);
            System.out.println(s.sex);
            System.out.println("===========================");
        }
    }
}
